change dialog layout based on orientation begun