add accelermeter callback