Edited some snippets. Made the view maximize.