removed a bunch of old code like the modal code