Separating view methods into new file