actions and layouts switch