added views and views interface and session mgmt