Created HomeView view class and moved functionality