Optimizations

changed hide/show to direct css changes