refactored composer so that it uses a different div for each instance, closes #575