added in checkPosition function to the layout object in order to address some repetitious and confusing code.
Started work on a mediator module to help manage relationship between layout api and interface.