allow closing with system buttons