working on layout selector