fix state of pins and settings selection