Refactor code. Use GTK3 instead of GTK2