Better way of referencing MainActivity for dialog