add index controller and homepage, changed routing