cleaning up createClickTaleDiv function