Extract modal window view into a seperate template