add statusbar and fix a lot