fixed show/hide functions.