updated router and added method where required