improving spring controller