add hide funtionality