added some controllers

Changed a lot of stuff around, made controller for each of the pages,
started work on the search controller made some progress getting
unexpected token syntax error