added requestHanders and router and modified index and server