added functions to set status and get avatar