Prevents showing redundant view when rotates orientation.