callcontroller for handling requests instead of file_get_contents