made some changes to apply page