add after click functionality