hide buttons when empty