open and close right side after click button