Add edit view
-remove database query from views and put in controller