added node behaviour. cleaned frontend