refactor code, fix loading data to show on home, myPost