refactor HomePage class to use one method for translations