bugid-100137 Wam page | getting wam index from wam api [added comment to function]