new changes for modal, revrite haml files