reimplemented rendering handler