added mainnav, added tests, fixed redraw issue that was causing flickers and killing the animation