Added tests for attend method within model
Added logic to controller to be refractored
Cleaned up controller and removed ajax bug