Add AJAX to all pages. Need fix bugs