Made view controller and html for applet