adding height animation for selected, adding some boilerplate code for texture changing