fix on click event function call
remove unused libraries
optimize for production