add ajax setting and inner margin