File dialogue and menu fixes