Shortening view code