change logic flip view