fixed PID toggling refreshing page (with click hack)