made it update on click