Added functionalty to request pages from server