add UITask post that uses std::function
remove unused PostFunc