added status view logic