Thank You Phanx I removed the "if button ... end"
Finally almost complete with my personal UI
Still to do:
A) Find/work out a slim downed (with only the option I want) chat mod like PhanXChat or nChat from NeavUI.
B) Get nData to work better with WoD and use less resources.
Thanks Everyone for your advice and help.
Coke
[EDIT] for those that are wondering what this buff mod does it pretty basic It scales the buffs bigger and mover the text inside the buff icon (see image below)