d147: fixed autostat code, fixed dashboard minimise issue by Xotic