fixed sidebar flashing in on empty category - got rid of javascript control and set the visibility properly from serverside