Clean up conditional for loading content
Remove an unused variable
Remove unneeded casts to GtkWindow