Calling the right function for webpage.