adding some js for UI

index page onclick events