after working through a few tutorials, I cleaned up the code in here
needed to make these match the cleaned js in the controllers