finish apply mvc to flask