some refactoring

change MainController to BillsController