add view at a specified index