added json control implementation