added collapsed attribute