make sure controls are restored when closing a photo and opening a new one