Fixes buttons not showing on android

Use setVisible not show()/hide()
DRY up setVisible code