Feed Dialog and some JS cleaning up