minor ui changes in dp cards view and code clean up