added some checks to vitalitybar