Add form preview handler.