update the index.php and sidebar.php