added jquery fadein/fadeout, fixed a few bugs