added some admin functionality and cleaned up template folder