Gradientdialog working
Fixed indices