updated code for get Static Pages