updated controller to use PDO
gs: updated to new ui