Better view

Separate view from index.php and better UI