Added getMacros() function
Added SelectMacro form