Move code to setState
setState for Properties