Close to opening dialog on start