Handling return page if there is no ajax.