add models

add moving median and moving average models

dynamically generate UI components