Dynamic HTML control placement framework for mobile and web based applications