moved more functionality into appBar