pagnation one

first draft of pagnation. the background functionality in
Application.java of pagnation is done.