added jquery/ajax to add/delete resources some formatting