added show status function