worked on dynamic height change