about to start work on replacing the inline javascript functions