Adding methods for modal