click to close
css + directive details
 change function and cleanup