apply css dynamically