added online visualization

Added all code for the online visualization