refactor map controller with pat, add slider control