move format rain to its own controller