simplify homepage source code