Fixed few bugs

- enable/disable edit and delete buttons
- infinite scroll bug was not pulling more data on some condition