Removing unused view functions