Added modal for creating and editing indexes

Added the modal for editing and adding indexes.