implement scroll lock method