added alert to check collapse