let the user getback to homepage once dialog button is closed