[RPI] refactor output layout file + give prior to categories filter when switching and let textSearch filter prior when rotate (we still have to decide what to do)