more windows like behaviour for row selection

Instead of putting the latest entry to the row with the least entries in it it adds it to the very end, and rearranges the rows accordingly.