finish the reconsitution of creating activity and store it in the localstorage