fixed label active and inactive

hi chris i did changes related to labels .
Please take a look