adds and removes overlay for menu function