add attribute function
fixed bug vs actions & class name
part to make "click to hide"