Better handling of the refresh button (the selected row is kept
upon refreshin)