added onclick-function for vector graphics objects