fade css and javascript fixes