getting rid of modalbox and replacing it with basic js modal