added respond_to format and configured routes