Removed actions and added javascript control functions