made sure class is always initialized by checking so in the onfisishedinflate