index template added and routes added to server file