homescreen .java file updated to functional