added task and friend functionality