fixed active state of swap buttons