Updated pos index for click listener