FIX: avoid warnings about enum types
FIX #97: preview button is now before save button