add php and js logic