adding functionality to "create" and hooking it with "view"