added hide message form function