Rewrited index front controller to OOP