Added URL changes to loaded function