keep @record in other variable when get_row is called so flash message works