Back to use attr to control modal