Made changes to hide and show components