Add open/close menu functionality