refactoritng grido, ad secura base control