running on water with commands?

if anyone has seen kier and dev's "upgrade yourself" video, youll know what im talking about, but if not, basically i was wondering if it was possible to make it so that a player has the ability to walk/run/jump on the surface of water when reaching a certain xp level with commands. i already got the part where it only affects players at lvl 5 or above, and also i was able to replace the block underneath the player to barrier block when it was water, but here are the issues: first well uhh.. the barrier blocks dont go away 💀 and i dont know how to make them turn back to water when im not standing on them... and also, i dont even know if it's barrier blocks i want to use, because they cant get waterlogged so it doesnt look like im running on water but on solid air so yeah if anyone knows if it's possible to have a seemless solid water surface with commands lmk (wasnt sure what tags to use so i put what i think was coherent)
Continue to help post