add separate methods to hide and show view