Better way to display/hide bar