migrate main view into jsp