fixed bug where edit/delete buttons showed improperly