implemented session controller