add a common module for storage
use storage module in controller
move stat's view to a new view module
create a new app module and put stat in it
move unit enum to common
move direction enum to common module