add maven imports for tiles, add some controller function