did some refactoring
Added new UI to add new attributes