adding "favorite class" layout