Added run method in View class and some improvments