Initialize when clicked in 'home' button fixed and validation of total distance before display