refactored positioning of some items. added support for ajax loading html