moving some processes to the session
moving the singleLayout as first layout