Removed unwanted view functions and templates