added results and basic logic, fixed routing