Fix controller and views and add an 'edit' link on the expenses table