Listen to URL changes and added a start function that can only be called once