Remember selected lines in frontend