added create and edit functions