resource bar added! maybe some bug fixes will needed!!!