adding "clear" button and pushState