Perfect layout framework