added header function to remove query string from URL