added hide functionality