refactoring buttons to work in outlook (hopefully)