replaced index hook with route hook and page handler

fixed #44