remove unnecessary css
more literate setting of hidden and active classes