added animation in/out to menu element