Changed sample to use server side view for create buttons
Added some syntatic sugar