abstracted Home View into a class