fixes build process, hides buttons from empty list