bug fix in navigation controller, add menu icon drawing function