added fade effects and fixed click events