wrap home view in class