added scroll binding, divided scripts