Added some utilities and screenshot event listener