fix show/hide script