Added function to switch to a different pad without having to reload the whole page.