trying to prevent receiving date as click event