added two helper methods: show() and hide()