we should put this in a before each method. same thing for show, new, and edit