Added authorization to view pages and controllers
Added simple .where search by teacher background