fix layout view js