added association info, moved ajax to resolve