added layout features through code