Moved code for modal window to createtender.jsp