Homepage view logic