modifies routes and devise controller to support ajax page request