implmented sharepreferences for start and end addresses