input view expand/collapse functionality