Less gui layout dependent code