if task is being edited and archived the edit tab is closed