bug fixes:
on window focus, now it keeps selected rows
some parts on how I used alertify