path drawing, UI hookup, bunch of stuff