Update showtoggle function.