add modal view code