Navigation Fixes

Fixed the faulty code in the navigation function, fixed the html in the
navigation bar, fixed the conditions on drawing the new topic button and
its name, fixed the passing and handling of top_id