Added an automatic layer refresh button that is togglable.