save task and switch panel