event handlers for textbox hide and show working