build two mode frame