Add form functionality