clean up code and added boards to root scope