Added getCurrentFormElement