Code to draw and drawNav
modifications
Uses new jafja to configure events and use events for chancing css styling