Fix pagination and view login