2 row x 2 row, with Switch - Work Fine !

you have lcd.begin(16,4) in setup but you say it is 2 lines