Added real-time data functionality

- Changed some html with javascript also