Control using UIMacros for computing snippet id