adding autoloader and calling a controller