pupup styling and javascript functionality added