Split index.php into respective views files. Re-did the UI. Minor fixes.