finally got strong typing working properly in UI project.