apply mvc to flask