moved init to appBar