encoding app controller