added getSelectedRows method, not yet finished though. havent
implemented the filter function yet.