added level select popup and fixed little bugs in trajectory visualisation