better logic (labels don´t stay empty when json call is takin place)