button opening url working, object-oriented code