refactoring code, added AmButton class