enable and disable editing table view controller