fixing ajax settings