add removeEmptyView event and tests