Trying to create an object editor.

I HAVE NO IDEA WHAT I'M DOING