edited resources and got rid of testing statements in controller