impliment page functionallity