controls and pager

fixed the controls bug,
added pager support