Added search bar clear button and properly handle initial URL fragment.