fixed empty check and included empty-state-message as a data attribute so that it could be used by js later