Remove modal functionality to modal class