removed required attribute and updated UI