adding css, refactoring templates and better date formatting