Only change visibility after all other UI tasks are performed

Post a runnable to set visibility of the content view to prevent race
conditions.