POC: using context managers to cleanup repeat UI

@mikemccracken curious on your input of incorporting context managers to handle some or majority of repeatable tasks when it comes to handling dialogs, views, text changes etc. Maybe this approach isn't beneficial in this sense but maybe we can incorporate this to ensure better graphical handling in the code.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>