cleaned up routes file and changed library resource route