Toggle class alongwith live function to define event