added actions for different modes