move click_handlers to separate file