add function wrapper to application so that it can start to interact with the page