added hide, show and clear functionality