use ajax global instead