homepage cleanup code cleanup