now the button even shows up only when it should.