Simplify app bar code