resolved nullpointer excepton on dashboard loading