show cursor pointer only if a onclick function is present