adding static funciton to hide all panels under a view