fixes to referesh listener and rendering of component attributes