Fixed some problems by connecting viewcontroller and logic manager together