toggle and input reset working