changed custom style connection method