move all of the code into wpsui