Update index.php

added judge ajax and msgbar, made styles seperate