Fixed click event for elements that change class. Added 'reset' function.