split handler into module + class, integrated into view
removed redundant code
test for custom handler