Adding Controller logic to calculate tip and adding settings tab to set default tip