added currency conversion function and view