Added a generic way of adapting all the loaded views