improved the js for the nav and messaged board