change $_SERVER['REQUEST_URI'] to $_GET['action']