some javascript  functionality added