added navbar to the webui
improved buf_t and added their tests