when i touch the 5v on board to that pins it works, i can read from serial port screen, when i release the signal, it doesnt change maybe 4 seconds,
That's because you are not pulling the pin LOW. Add a 10K resistor between the pin and ground, to pull the pin LOW instantly when you remove the wire.