first version with controller script working