fixed a few bugs with App Bar