new controller and dynamic

revised controller and updated dynamic layer control and components
working