added helper method and changed home page population