added protocol to track menu opening/closing