create base api controller
add cost to history and id to bike name
add flash with total cost after closing rent