added ajax feature in slim rails