add feature to change center position and fix bug that can't scroll