refactor panelhome