tidying up home.php for readability