api for user dashboard as well