Fixed first part of focus problem. Focus is now retained for forms without submit option or ajax/sapl