add view state to forms