adding gradient to controls
merged vars into State model