added controller and view logic, updated admin functionality and view layouts