refactored
added hide method to view module