modified the main file in a7 to handle the display for eclipse IDE