switch between action and task button when task apears