Edit the view & main to make it compatible