Add get last item func for create forms