use the arrange() api function instead of calculating layout manually
remove local testing configuration