Adds index and drawing events