buttons visibility fixes