click and localstorage fixes