handle missing settings properly
implement save/discard functionality for the preview component