implemented custombox. run test() in console to try it