style refactoring
#19 add dynamic calc position main layout