added some code from quiz tile layout