note public/private should switch correctly on button press