App sidebar: some adjustments

- Cleanup
- fix disappearing appbar on changing appbar position
- may fix endless FC on changing appbar contents

credit to lion0738