got side bar show and hide working properly. need to make the client remember the configuration.