Added Color and the things necessary for the checking on the edit mode .