[fix] properly hide/show edit/add buttons