REST API refactoring on main page