fixed the approve page from running commands out of order