add two url handling methods. One for home page and the second is for any of the other pages