extracted base.html, remove unused files and lines of code