switch forms based on mode... fixes #5219