Create custom attributes to modal and adjusts modal doc.