fixed a wrong path and added flash message for sessions layout