remove params and session information from view