add animation for switching between menu and submenu

values are now set to parmetershandler