Add form functionality.