added show/hide events to pages