Dynamically add, edit and remove css rules