Write code HomepageActivity and RecordActivity