Added edit activity and inventory dialog.