added hide and show statements