Added main-view directive which encapsulates failure and tip modals