Added protection for indexing outside of range in view page.
Added approved flag to snippet table.
Added thank you alert after new upload.
Updated UI of index page