changed behaviour of folder permission dialog to close after save