Fix the user state and pagination. Closes #416

This PR will fix the user state (filters) and also will make the pagination stateless.