updated for new elements in home.php