added some fixes to template and home page