added conditional in case there isn't an id associated with a form