Made changes for showing and hiding options