Added ajax to the main layout