style updates and dynamic div changes