removed the general solution for toggling inputs