use template for modals. fix bug with meta filters not allowing text to be entered after clearing.