Simplify amd boilerplate
Bugfix: Scroll viewport to selected date