Reading data from preferences and Matching Ui