fix click events for enlarging boxes