Modal form functionality.