Added code for show/hide tab