client java script for UI added - working fine