Add sidebar ui, offline database, and improve ui