upgrated func. on creating page