add show hide function to navigation