Adding scripts and updating number of items