saving state of elements that you tap on