initial implementation of trajectory widget