using static function and little clean up of stpage.class
little ui update