Added proper hook for url