fixed paths in views and added guard to create methods