modify the slide menu and codes accordingly