conditional button fix