adding hiding and showing toolbar feature