Apply settings in real time

I saw you made some tries, here is a working version. Maybe not the best looking, but eh it works :)