Issue/1729 restore last activity

Fix #1729 - last shown activity is now restored at startup