fixed the problem of pro/con buttons when begin editing and switching between cells