Automatic buttons appear and dissapear conditionally