added sharepreference functions for UID