deleted unused parts of the main view
fixed small bug in results, causing empty templates to still show