Added: preference button image
trim trailing whitespace
save on enter pressed