Create listener and the setup method