fix bug in endless scroll listener
adjust layout