implemented main route