created pos click listener