Added pan-to-close functionality to the over menu