added hide and show methods to components prototype
added hide and show methods to components prototype