Changed when dialogue is shown