added controllers and modified router file