[index.php] Fixed indentation, put notice logic out of HTML