implemented auto hiding of placeholder and focusing of input