make default state in element chooser dependent from element