override session controller and handle layout