adding common approach to display status and color code
Merge pull request #9 from Nayan/statindiactor

adding common approach to display status and color code