cleaning up the edit form of the log