updated layout. js transferred to certain views only