added version history, made slight changes to some hide/show code