-moved main method in ctrl package.
-main controller is taking care of the close action now.