avoid using @record for inplace edit template
clear session when setting nil values
store user settings (sort, page, search_params) into session is optional now, fixes #280