initialize ui with stored data