ENH:modify ajax configuration from webconfig and modify template