refactored indexes of rows and columns to optimize click behaviors