refactored reposcontroller create method - added hook methods