Added reset functionallity to controlstate