Finished create and edit functionality.