added onclick generate map and some other stuff