starting modal implementation