Added function comments. chnages for API screen logic - desktop