bootstrap modal would not disappear after save