Removed some useless code (using jQuery css intead), modified layout on edit.