use formatAmount as global function so we don't need to inject it to the view every time
use currencies as global data so we don't need to inject it to the view every time