added previous page logic
added application page, and related changes