frontend javascript controll added