Fixed issues and added this.createItem, createcheck and oncreate