loading previous preferences