moved app bar creation to code for add/edit view