add function to rightNavButton. to open right menu.