separating the panes into modules