fix some bugs and finish writing the routes.php
improve lookings