Refactored callback scheme of homepage.