Change name extractedDomain to domains, regactor code for alert messages and fetch form by id