fixed pagination arithmetic
Added prev page button
Case for first page handled