added functionality hide/show into js script