fix attributes view
fix goods template
change functional for adding new goods with attributes