Add controller actions for closing/opening tasks.