Remove unnecessary code form modal template