making the retreat view work