improve portrait lock